|
|
|
|
|
|
|
disconnect the drive after installation. If you emailed this program to the users, they would not have to worry about connecting to the right network drive. Another possibility would be storing each user's date of installation in a database. As with SETUP.EXE, you might have to write this program so that it would run without the VB6 runtime files. |
|
|
|
|
|
|
|
|
If you want to run a setup program other than SETUP1.EXE, you can still use Microsoft's SETUP.EXE to install the VB6 runtime DLLs. To do so, replace the SETUP1.EXE program in the Support directory with your own program and rebuild the CAB file. You can also remove the [Setup1 Files] section from SETUP.LST entirely if your setup program doesn't need it. |
|
|
|
|
|
|
|
|
|
Microsoft includes the source code for SETUP1.EXE with Visual Basic. If you want view this code, open the project SETUP1.VBP in the Wizards\PDWizard\setup1 directory. If you need to make any changes, first make a backup copy of the original files.  |
|
|
|
|
|
 |
|
 |
|
|
Successful Setups |
|
|
|
 |
|
 |
|
|
Installing a Visual Basic application can become a real headache if you have a lot of users. For a client/server application, chances are you will also need to install database drivers and set up data sources, which is an extra step. Even Internet setups, which are supposed to be handled automatically by Internet Explorer, may run into complications and require tinkering with the security settings. |
|
|
|
 |
|
 |
|
|
I think that most people would agree that users of an application should not be forced to jump through hoops just to install it. A good goal to have is a single setup process that does everything as quickly and efficiently as possible. To reach this goal, you may have to get creative and go beyond the standard Setup Wizard approach, but your application will look more professional in the end. |
|
|
|
 |
|
 |
|
|
The way to save yourself troubleshooting time later is to thoroughly test your installation. As mentioned earlier, a test machine that can be reset from a file image is a useful tool. You should test your application with different operating systems, test upgrades versus fresh installations, and test the interaction of your application with other software packages. |
|
|
|
|
|
|
|
|
Packaging ActiveX Components |
|
|
|
|
|
|
|
|
In the preceding sections, you learned about using the Package and Deployment Wizard with a Standard EXE project. For ActiveX components, such as an ActiveX control (OCX file) or an ActiveX DLL, the process is similar, but some options are specific to these project types. |
|
|
|
|
|
|
|
|
With an ActiveX component, you still have the option of creating a Standard installation that can be executed explicitly by the users. However, you also can create a package for Internet download. In this case, the Internet Explorer browser handles installation. To specify an Internet installation package, choose Internet Package from the Package Type screen, as shown in Figure B.13. |
|
|
|
|
|
|
|
|
Another important decision to make is which of the required files to include in your CAB file. |
|
|
|
|
|